package com.heima.model.behavior.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author lo
 * @date 2021/9/29
 */
@Data
@Document(value ="ap_likes_behavior")
public class ApLikesBehavior {
    /**
     * 主键
     */
    private String id;
    /**
     * 实体id
     */
    private Integer entryId;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 点赞内容类型
     * 0 文章
     * 1 动态
     */
    private Short type;

    /**
     * 0 点赞
     * 1 取消点赞
     */
    private Short operation;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 设备id
     */
    private Integer equipmentId;
}
